{% extends "base.html" %}


{% block title %}xmlrpc - {{block.super}}{% endblock %}


{% block content %}
<h1>XML-RPC<h1>
<h2>What's that?</h2>
<p>
  This is the <a href="http://www.xmlrpc.com/">XML-RPC</a> interface of {{cur_site}}. That
  allows you to access data from {{cur_site}} from your games and other programs.<br/>
  For an enlarged interface that also includes authenticated write access, 
  have a look at the <a href="{% url api-doc %}">REST api</a>.
</p>

<h2>Methods</h2>
<dl>
{% for method in methods %}
<dt><strong>{{method.name}}</strong>{#<em>{{method.signature}}</em>#}</dt>
<dd>
{{method.help|safe}}
</dd>
{% endfor %}
</dt>

<h2>Example</h2>

{% code %}
>>> import xmlrpclib
>>> rpc_srv = xmlrpclib.ServerProxy("http://{{cur_site}}/xmlrpc/")
>>> rpc_srv.get_latest_version("project-22")
'1.0beta'
{% endcode %}

{% endblock %}